package com.mapper;

import com.github.pagehelper.Page;
import com.pojo.Permission;
import com.pojo.PermissionExample;
import com.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionMapper {
    /*<!--查询带条件-->分页*/
    Page<Permission> selectByQueryString(String queryString);

    //查询有没有角色引用该权限
    Integer queryByCount(Integer PermissionId);


    long countByExample(PermissionExample example);

    int deleteByExample(PermissionExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    int insertSelective(Permission record);

    List<Permission> selectByExample(PermissionExample example);

    Permission selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Permission record, @Param("example") PermissionExample example);

    int updateByExample(@Param("record") Permission record, @Param("example") PermissionExample example);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);
}